<!-- 좌측메뉴 시작-->
		

		<?

			$side_menu_count = 4;

			$side_menu_file[1] = "memo";
			$side_menu_title[1] = "쪽지 관리";
			$side_menu_target[1] = "memo.php";

			$side_menu_file[2] = "friends";
			$side_menu_title[2] = "이웃 관리";
			$side_menu_target[2] = "friends.php";

			$side_menu_file[3] = "ndd_member_info";
			$side_menu_title[3] = "계정 정보";
			$side_menu_target[3] = "ndd_member_info.php";

			$side_menu_file[4] = "ndd_member_pw";
			$side_menu_title[4] = "비밀번호 변경";
			$side_menu_target[4] = "ndd_member_pw.php";



		?>
		<div id="body_navigation">
			<div class="navi_dot_line"></div>
			<ul id="navi_list">

			<? 
			for($i=1;$i<=$side_menu_count;$i++)
			{

				?>

				<li id="navi_<?=$side_menu_file[$i]?>">
					<a <? if($current_file == $side_menu_file[$i].".php") echo "class=\"current_page\""; else echo "href=\"".$side_menu_target[$i]."\""; ?> >
						<img src="images/M<?=$i?>_icon_<? if($current_file == $side_menu_file[$i].".php") echo "RED";?>.png" alt="navi_<?=$side_menu_file[$i]?>" border="0"/><?=$side_menu_title[$i]?>
					</a>
					<div class="navi_dot_line"></div>
				</li>

				<?

			}
			?>

			</ul>
		</div>


		<script>
		var SideBarAction = {
			initialize:function()
			{
				this.current_navi = $("li[id*='navi_'] > a[class='current_page']");
				this.another_navi = $("li[id*='navi_'] > a[class!='current_page']");

				this.registerHandlers();
			},
			registerHandlers:function()
			{
				this.onMouseAction();
			},
			onMouseAction:function()
			{
				$(this.another_navi).each(function(){
					var img_src = $("img", this).attr('src') + "";
					$(this).mouseover(function(){
						var background = "#F2F2F2 url('images/list_arrow_.png') 93% 55% no-repeat";
						var img_src_ch = img_src.substring(0, 15) + "RED.png";
						$(this).css('background', background);
						$("img", this).attr('src', img_src_ch);
						$(this).css('cursor', 'pointer');
					});
					$(this).mouseout(function(){
						$(this).css('background', '#FFFFFF');
						$("img", this).attr('src', img_src);
						$(this).css('cursor', 'default');
					});
				});
			}
		};
			$(document).ready(function(){
				SideBarAction.initialize();
			});
		</script>


<!-- 좌측메뉴 끝-->